<%@ Page Language="C#" MasterPageFile="~/Site.master" Theme="Default" 
    EnableTheming="true" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" 
    Title="Dr. Yurttas' Office Library &mdash; Login" %>
<asp:Content ID="ContentAdmin" ContentPlaceHolderID="MasterContentAdmin" Runat="Server">
    <asp:LoginView ID="LoginViewAdmin" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="admin">
                <ContentTemplate>
                    You are currently logged in.<br />
                    <asp:LoginStatus ID="LoginStatus1" runat="server" />
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>                       
</asp:Content>
<asp:Content ID="ContentUser" ContentPlaceHolderID="MasterContentUser" Runat="Server">
    <asp:LoginView ID="LoginViewUser" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="user">
                <ContentTemplate>
                    You are currently logged in.<br />
                    <asp:LoginStatus ID="LoginStatus2" runat="server" />
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>                       
</asp:Content>
<asp:Content ID="ContentAnonymous" ContentPlaceHolderID="MasterContentAnonymous" Runat="Server">
    <asp:LoginView ID="LoginViewAnonymous" runat="server">
        <AnonymousTemplate>
            <div>
                <asp:Login ID="Login1" runat="server" >
                    <LayoutTemplate>
                        <table class="login-table" border="0" cellpadding="4" cellspacing="0" 
                            style="border-collapse: collapse">
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0">
                                        <tr>
                                            <td align="center" colspan="2" style="font-weight: bold; 
                                                font-size: 0.9em; color: white;
                                                background-color: #5d7b9d">
                                                Log In</td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="UserNameLabel" runat="server" 
                                                    AssociatedControlID="UserName">User Name:</asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server" Font-Size="0.8em">
                                                </asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                    ControlToValidate="UserName"
                                                    ErrorMessage="User Name is required." 
                                                    ToolTip="User Name is required." 
                                                    ValidationGroup="ctl00$Login1">*
                                                    </asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="PasswordLabel" runat="server" 
                                                    AssociatedControlID="Password">Password:</asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" Font-Size="0.8em" 
                                                TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                    ControlToValidate="Password"
                                                    ErrorMessage="Password is required." 
                                                    ToolTip="Password is required." 
                                                    ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <asp:CheckBox ID="RememberMe" runat="server" 
                                                    Text="Remember me next time." />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color: red">
                                                <asp:Literal ID="FailureText" runat="server" 
                                                    EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                &nbsp;<asp:Button ID="LoginButton" runat="server" 
                                                    CommandName="Login" Text="Log In" 
                                                    ValidationGroup="ctl00$Login1" />
                                            </td>
                                        </tr>
                                    </table>
                                    <asp:Button ID="forgotPasswordButton" runat="server" 
                                        CommandName="ForgotPassword" Text="Forgot Password?" 
                                        UseSubmitBehavior="False"
                                        Width="100px" OnClick="forgotPasswordButton_Click" /></td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
            </div>
        </AnonymousTemplate>
    </asp:LoginView>                       
</asp:Content>